package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 保存订单 响应结果
 */
public class AddFinancialOrderResponse implements Parcelable {
    public AddFinancialOrderResponse() {
    }

    public AddFinancialOrderResponse(String dsnNo, String applyDate, String carNo, String carDriver, String carPhone, String smelterName, String rbName, String cardholder, String bankCardNo, List<FinancialGoodsList> catList, List<FinancialUpload> rbWeighImgs, List<FinancialUpload> cufCarImg) {
        this.dsnNo = dsnNo;
        this.applyDate = applyDate;
        this.carNo = carNo;
        this.carDriver = carDriver;
        this.carPhone = carPhone;
        this.smelterName = smelterName;
        this.rbName = rbName;
        this.cardholder = cardholder;
        this.bankCardNo = bankCardNo;
        this.catList = catList;
        this.rbWeighImgs = rbWeighImgs;
        this.cufCarImg = cufCarImg;
    }

    // 销售单号
    private String soNo;
    // 送货单号
    private String dsnNo;
    // 状态id
    private int soStatusId;
    // 状态名称
    private String soStatus;
    // 申请时间
    private String applyDate;
    // 资质商名称
    private String rbName;
    // 车牌号
    private String carNo;
    // 驾驶员姓名
    private String carDriver;
    // 驾驶员电话
    private String carPhone;
    // 冶炼厂
    private String smelterName;
    // 收款人
    private String cardholder;
    // 收款银行卡
    private String bankCardNo;
    // 货物信息
    private List<FinancialGoodsList> catList;
    // 资质商过磅单
    private List<FinancialUpload> rbWeighImgs;

    // 驾驶证，一张
    private List<FinancialUpload> driverLicense;
    // 行驶证，一张
    private List<FinancialUpload> drivingLicense;
    // 车辆照片(多张，最多3张)
    private List<FinancialUpload> cufCarImg;

    public String getSoNo() {
        return soNo;
    }

    public void setSoNo(String soNo) {
        this.soNo = soNo;
    }

    public String getDsnNo() {
        return dsnNo;
    }

    public void setDsnNo(String dsnNo) {
        this.dsnNo = dsnNo;
    }

    public int getSoStatusId() {
        return soStatusId;
    }

    public void setSoStatusId(int soStatusId) {
        this.soStatusId = soStatusId;
    }

    public String getSoStatus() {
        return soStatus;
    }

    public void setSoStatus(String soStatus) {
        this.soStatus = soStatus;
    }

    public String getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(String applyDate) {
        this.applyDate = applyDate;
    }

    public String getRbName() {
        return rbName;
    }

    public void setRbName(String rbName) {
        this.rbName = rbName;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getCarDriver() {
        return carDriver;
    }

    public void setCarDriver(String carDriver) {
        this.carDriver = carDriver;
    }

    public String getCarPhone() {
        return carPhone;
    }

    public void setCarPhone(String carPhone) {
        this.carPhone = carPhone;
    }

    public String getSmelterName() {
        return smelterName;
    }

    public void setSmelterName(String smelterName) {
        this.smelterName = smelterName;
    }

    public String getCardholder() {
        return cardholder;
    }

    public void setCardholder(String cardholder) {
        this.cardholder = cardholder;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public List<FinancialGoodsList> getCatList() {
        return catList;
    }

    public void setCatList(List<FinancialGoodsList> catList) {
        this.catList = catList;
    }

    public List<FinancialUpload> getRbWeighImgs() {
        return rbWeighImgs;
    }

    public void setRbWeighImgs(List<FinancialUpload> rbWeighImgs) {
        this.rbWeighImgs = rbWeighImgs;
    }

    public List<FinancialUpload> getDriverLicense() {
        return driverLicense;
    }

    public void setDriverLicense(List<FinancialUpload> driverLicense) {
        this.driverLicense = driverLicense;
    }

    public List<FinancialUpload> getDrivingLicense() {
        return drivingLicense;
    }

    public void setDrivingLicense(List<FinancialUpload> drivingLicense) {
        this.drivingLicense = drivingLicense;
    }

    public List<FinancialUpload> getCufCarImg() {
        return cufCarImg;
    }

    public void setCufCarImg(List<FinancialUpload> cufCarImg) {
        this.cufCarImg = cufCarImg;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.soNo);
        dest.writeString(this.dsnNo);
        dest.writeInt(this.soStatusId);
        dest.writeString(this.soStatus);
        dest.writeString(this.applyDate);
        dest.writeString(this.rbName);
        dest.writeString(this.carNo);
        dest.writeString(this.carDriver);
        dest.writeString(this.carPhone);
        dest.writeString(this.smelterName);
        dest.writeString(this.cardholder);
        dest.writeString(this.bankCardNo);
        dest.writeTypedList(this.catList);
        dest.writeTypedList(this.rbWeighImgs);
        dest.writeTypedList(this.driverLicense);
        dest.writeTypedList(this.drivingLicense);
        dest.writeTypedList(this.cufCarImg);
    }

    protected AddFinancialOrderResponse(Parcel in) {
        this.soNo = in.readString();
        this.dsnNo = in.readString();
        this.soStatusId = in.readInt();
        this.soStatus = in.readString();
        this.applyDate = in.readString();
        this.rbName = in.readString();
        this.carNo = in.readString();
        this.carDriver = in.readString();
        this.carPhone = in.readString();
        this.smelterName = in.readString();
        this.cardholder = in.readString();
        this.bankCardNo = in.readString();
        this.catList = in.createTypedArrayList(FinancialGoodsList.CREATOR);
        this.rbWeighImgs = in.createTypedArrayList(FinancialUpload.CREATOR);
        this.driverLicense = in.createTypedArrayList(FinancialUpload.CREATOR);
        this.drivingLicense = in.createTypedArrayList(FinancialUpload.CREATOR);
        this.cufCarImg = in.createTypedArrayList(FinancialUpload.CREATOR);
    }

    public static final Creator<AddFinancialOrderResponse> CREATOR = new Creator<AddFinancialOrderResponse>() {
        @Override
        public AddFinancialOrderResponse createFromParcel(Parcel source) {
            return new AddFinancialOrderResponse(source);
        }

        @Override
        public AddFinancialOrderResponse[] newArray(int size) {
            return new AddFinancialOrderResponse[size];
        }
    };
}
